//
// Created by wze-zero on 2024/7/8 008.
//

#include <iostream>

using namespace std;

int main() {
    int a, b, temp;
    cin >> a;
    cin >> b;
    if (a != b) {
        temp = a;
        a = b;
        b = temp;
    }
    cout << a << " " << b << endl;
    return 0;
}